﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace Common.Exceptions.MinioExceptions
{
    /// <summary>
    /// 文件不存在异常
    /// </summary>
    public class StorageFileNotFoundException : BusinessException
    {
        public StorageFileNotFoundException(string fileName)
            : base($"文件不存在: {fileName}", 4004, HttpStatusCode.NotFound)
        {
        }

        // 如果需要支持内部异常的文件不存在异常
        public StorageFileNotFoundException(string fileName, Exception innerException)
            : base($"文件不存在: {fileName}", innerException, 4004, HttpStatusCode.NotFound)
        {
        }
    }
}
